package com.jzlin.funhub.admin.model.req;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

/**
 * 保存问题草稿.
 *
 * @author linjz
 * @since 2025/7/9
 */
@Data
@ApiModel
public class QuestionSaveDraftReq {
    @ApiModelProperty("问题标题")
    @NotBlank(message = "问题标题不能为空")
    private String title;

    @ApiModelProperty("问题摘要")
    private String summary;

    @ApiModelProperty("问题详情")
    @NotBlank(message = "问题详情不能为空")
    private String content;

    @ApiModelProperty("分类id")
    @NotNull(message = "分类id不能为空")
    private Long categoryId;
}
